<?php
class GroupModel extends Model
{
	public function addGroup($name)
	{
		$group['name'] = $name;
		return $this->add($group);
	}
	
	public function getById($id)
	{
		$condition['id'] = $id;
		$group = $this->where($condition)->find();
		return $group;
	}
	
}
?>																																